<?php /* Smarty version Smarty-3.0.5, created on 2015-11-21 13:31:21
         compiled from "D:\WWW\phpcms5\tpl/xiaomi/register.html" */ ?>
<?php /*%%SmartyHeaderCode:17989565001a9ba0e17-01626510%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd85602db5e4c2eb441933bf331b07e2772808259' => 
    array (
      0 => 'D:\\WWW\\phpcms5\\tpl/xiaomi/register.html',
      1 => 1448076258,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '17989565001a9ba0e17-01626510',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>

    

<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tplpath')->value)."site_header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>


<link rel="stylesheet" type="text/css"  href="<?php echo $_smarty_tpl->getVariable('skinpath')->value;?>
css/index2.min.css" />
<link  rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->getVariable('skinpath')->value;?>
css/global.css"  />
<link rel="stylesheet" type="text/css"  href="<?php echo $_smarty_tpl->getVariable('skinpath')->value;?>
css/lubo.min.css" />
<script type="text/javascript">
function formsubmit()
 {
 if (formcheck())
 {

      document.regform.action="saveuser.php?action=add";
      document.regform.method="post";
      document.regform.submit();
   }  
}

  function formcheck() 
    { 
       if(document.getElementById("loginname").value== "") 
         { alert("请输入用户名");
           document.regform.loginname.focus();
           document.regform.loginname.select(); 
           return false;
         }
       if(document.regform.loginname.value.length<3) 
         { alert("用户名不能小于3位");
           document.regform.loginname.focus();
           document.regform.loginname.select(); 
           return false;
         }   


if ((document.regform.password.value).length<6)
{
alert("密码应大于等于6位！");
document.regform.password.focus();
document.regform.password.select();
return false;
}

if(document.regform.password1.value!=document.regform.password.value)
{
alert("两次密码输入不一致");
document.regform.password1.focus();
document.regform.password1.select();
return false;
}



    return true;      
    }





</script>
<div class="exchange xm-service-box">

    <div class="breadcrumbs">
        <div class="container breadcrumbs">
            <a href='../../<?php echo $_smarty_tpl->getVariable('url_index')->value;?>
'>首页</a><span class="sep">/</span><?php echo $_smarty_tpl->getVariable('navigation')->value;?>

        </div>
    </div>

    <div class="container">
        <div class="exchange">
        <!-- 轮播图 -->
            <div class="home-hero">
                <div class="home-hero-slider">
                    <div id="J_homeSlider" class="xm-slider" data-stat-title="成功案例轮播">
                    <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('ads_zone1')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['adsname']['iteration']=0;
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['adsname']['iteration']++;
?>
                        <div class="slide loaded">
                            <a href="<?php echo $_smarty_tpl->tpl_vars['item']->value['url'];?>
" target="_blank"  onClick="_gaq.push(['_trackEvent', '<?php echo $_smarty_tpl->tpl_vars['item']->value['adsname'];?>
', 'A<?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['adsname']['iteration'];?>
', '<?php echo $_smarty_tpl->tpl_vars['item']->value['url'];?>
']);">
                                <img width="1226" height="440" src="<?php echo $_smarty_tpl->tpl_vars['item']->value['uploadfiles'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['item']->value['adsname'];?>
" />
                            </a>
                        </div>
                    <?php }} ?>  
                   </div>
                </div>
            </div>

            <!-- 左侧分类 -->

            <div class="row">
                <div class="span4">
                    <div class="xm-service-sidebar">
                        <div class="content">
                            <div class="xm-sidebar-content">
                                <div class="nav-list">
                                    <h3>会员中心</h3>
                                    <ul class="uc-nav-list feature">
                                <?php if ($_smarty_tpl->getVariable('username')->value==''){?>
                                <li><a href="register.php" target="_blank" style="margin-left: 5px;">注册会员</a></li>
                                <li><a href="indexm.php" target="_blank" style="margin-left: 5px;">会员登录</a></li>
                                <?php }else{ ?>
                                <li><a href="index.php" target="_blank" style="margin-left: 5px;">会员中心首页</a></li>
                                <li><a href="userinfo.php" target="_blank" style="margin-left: 5px;">修改基本信息</a></li>
                                <li><a href="mymessage.php" target="_blank" style="margin-left: 5px;">我的留言</a></li>
                                <li><a href="myorder.php" target="_blank" style="margin-left: 5px;">我的订单</a></li>
                                <li><a href="resume.php" target="_blank" style="margin-left: 5px;">注册会员</a></li>
                                <li><a href="register.php" target="_blank" style="margin-left: 5px;">注册会员</a></li>
                                <?php }?>


                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>


                <!-- 右侧详情 -->
                <div class="span16">
                    <div class="content">
                        <div class="xm-exchange-content phone" data-class="phone" style="display: block;">
                            <div class="service-hd">
                                <h2>会员中心</h2>
                            </div>
                            <div style="width:auto;height:auto">
                                <div class="webcontent">
                                    <div id="img_list" style="width:760px;">
                                        <div id="plug1">
                                            <form method="POST"  name="regform" >
    <table cellpadding="1" border="0" cellspacing="1">
    <tr>
    <td class="zhuce_text"><span>用户名:</span></td>
    <td class="zhuce_input"><input id="loginname" name="loginname" type="text" class="input-text" /></td>
    </tr>
    <tr>
    <td class="zhuce_text"><span>登录密码:</span></td>
    <td class="zhuce_input"><input name="password" id="password" type="password" class="input-text" /></td>
    </tr>
    <tr>
    <td class="zhuce_text"><span>密码确认:</span></td>
    <td class="zhuce_input"><input  name="password1" id="password1" type="password" class="input-text" /></td>
    </tr>
    <tr>
    <td class="zhuce_text"><span>性别：</span></td>
    <td class="zhuce_input"><input name="Sex" type="radio" value="1" checked="checked" class="inputnoborder" />先生 
     <input type="radio" name="Sex" value="0" class="inputnoborder" />女士</td>
    </tr>
   <?php  $_smarty_tpl->tpl_vars['volist'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('result')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['volist']->key => $_smarty_tpl->tpl_vars['volist']->value){
?>
	<?php if ($_smarty_tpl->tpl_vars['volist']->value['id']!=6){?>
	<tr>  
	<td class="zhuce_text"><span><?php echo $_smarty_tpl->tpl_vars['volist']->value['register_name'];?>
:</span></td>
    <td class="zhuce_input"><input name="<?php echo $_smarty_tpl->tpl_vars['volist']->value['register_id'];?>
" id="<?php echo $_smarty_tpl->tpl_vars['volist']->value['register_id'];?>
" type="text" class="input-text" /></td>
	</tr>
	<?php }else{ ?> 
	<tr>
	<td class="zhuce_text"><span><?php echo $_smarty_tpl->tpl_vars['volist']->value['register_name'];?>
:</span></td>
    <td class="zhuce_input" colspan="2"><textarea name='<?php echo $_smarty_tpl->tpl_vars['volist']->value['register_id'];?>
' id='<?php echo $_smarty_tpl->tpl_vars['volist']->value['register_id'];?>
' style='width:260px;height:65px;overflow:auto;color:#444444;'></textarea></td>
	</tr>
	<?php }?> 
	<?php }} ?>
    <tr>
    <td class="zhuce_text"></td>
    <td class="zhuce_subimt" colspan="2">
    <input type="button" id="b_save" name="b_save" onClick="formsubmit()" value="立即注册" />
    <input type="reset" value="重填" id="b_reset" name="b_reset" /></td>
    </tr>
    </table>
</form>
                                        <div style=" clear:both;"></div>
                                    </div>
                                 
                                </div>
                              </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tplpath')->value)."site_footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
